import java.util.Random;

public class Addition implements Operation
{
    private static final Random randomNumbers = new Random();
    private static final int MAX_OPERAND_VALUE = 100;
    private int operand1;
    private int operand2;
    
    
    public Addition()
    {
        operand1 = randomNumbers.nextInt(MAX_OPERAND_VALUE);
        operand2 = randomNumbers.nextInt(MAX_OPERAND_VALUE);
    }

    @Override
    public String toString()
    {
        return operand1 + " + " + operand2 + " = ";
    }
    
    @Override
    public String getResult()
    {
        return Integer.toString(operand1 + operand2);
    }
}
